package demo5;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/27 17:03
 */
public class EnumDemo {
    public static void main(String[] args) {
        Season s = Season.SPRING;
        System.out.println(s.getSeasonDesc());
        switch (s){
            case SPRING:
                System.out.println(s.getSeasonName()+"很"+s.getSeasonDesc());
                break;
            case SUMMER:
                System.out.println(s.getSeasonName()+"很"+s.getSeasonDesc());
                break;
            case AUTUMN:
                System.out.println(s.getSeasonName()+"很"+s.getSeasonDesc());
                break;
            case WINTER:
                System.out.println(s.getSeasonName()+"很"+s.getSeasonDesc());
                break;
        }
    }
}
